body {
    min-width: 1200px;
}

a:hover {
    color: #ff6a00;
}

.container {
    width: 1200px !important;
    margin: 0 auto !important;
}

a {
    color: #333333;
    text-decoration: none;
}

// 头部设计
#header {
    width: 100%;
    height: 40px;
    background-color: #333333;
    color: #b0b0b0;

    .container {
        display: flex;
        justify-content: flex-end;

        div {
            height: 16px;
            padding-top: 12px;

            a {
                display: inline-block;
                color: #b0b0b0;
                border-right: 1px solid #7e7c7c;
                border-left: 1px solid #333333;
                height: 20px;
                padding: 0px 5px;

                &:hover {
                    color: #fff;
                }
            }
        }

        .cart {
            background-color: #424242;
            height: 40px;
            padding: 0px;
            margin-left: 20px;
            line-height: 40px;

            a {
                border: none;
            }
        }
    }
}

// 导航条设计
#nav {
    height: 74px;

    .container {
        display: flex;
        justify-content: space-between;

        div {
            display: flex;

            img {
                width: 200px;   
                height: 74px;
                margin-right: 40px;
            }

            .menu {
                display: flex;
                justify-content: space-evenly;
                width: 808px;
                height: 74px;
                font-size: 16px;
                line-height: 74px;

                div {
                    width: 100px;
                    text-align: center;

                    a {

                        &:hover {
                            color: red;
                        }
                    }
                }
            }
        }

        span {

            align-self: center;
            display: inline-block;
            vertical-align: middle;
            font-size: 30px;
        }
    }

}

//主体--商品详情设计
#main {
    border-top: 4px solid #f7f7f7;
    padding-top: 20px;

    .container {
        .tip {
            display: flex;
            font-size: 12px;
        }

        // 商品详情展示
        .detail {
            width: 100%;
            height: 550px;
            margin: 20px 0px;
            position: relative;
            display: flex;
            justify-content: space-between;

            // 左边商品图片展示区
            .left {
                width: 450px;
                height: 550px;
                display: flex;
                flex-direction: column;

                // 放置商品图片盒子
                .img {
                    width: 450px;
                    height: 450px;
                    border: 1px solid #eeeeee;
                    margin-bottom: 20px;
                    position: relative;

                    // 遮罩层
                    .mask {
                        display: none;
                        position: absolute;
                        left: 0px;
                        right: 0px;
                        background: rgba(255, 239, 167, .6);
                        width: 250px;
                        height: 250px;
                        pointer-events: none;
                    }

                    img {
                        width: 100%;
                        height: 100%;
                    }
                }

                // 放置商品小图盒子
                ul {
                    width: 450px;
                    height: 80px;
                    display: flex;
                    justify-content: space-between;

                    li {
                        width: 80px;
                        height: 80px;
                        box-sizing: border-box;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }

                    .active {
                        border: 2px solid red;
                        ;
                    }
                }
            }

            //放大镜
            .glass {
                display: none;
                width: 550px;
                height: 550px;
                background: rgba(135, 206, 235, 0.2);
                position: absolute;
                top: 0px;
                left: 450px;
                z-index: 1;
                overflow: hidden;
                img{
                    position: relative;
                    width: 990px;
                    height: 990px;
                }
            }

            //右边商品描述区
            .right {
                width: 700px;
                height: 550px;
                display: flex;
                flex-direction: column;
                // background: skyblue;

                // 商品名字
                h1 {
                    width: 650px;
                    height: 40px;
                    font-size: 18px;
                    font-weight: 700;
                    padding: 20px 0;
                    overflow: hidden;
                    color: #666666;
                }

                // 商品描述
                .describe {
                    width: 650px;
                    font-size: 14px;
                    line-height: 20px;
                    color: red;
                }

                // 商品价格
                .price {
                    width: 650px;
                    height: 40px;
                    background: #f3f3f3;
                    color: #333333;
                    line-height: 40px;
                    margin-top: 10px;

                    span:nth-child(1) {
                        margin-left: 20px;
                        letter-spacing: 1em;
                        font-size: 12px;
                    }

                    span:nth-child(2) {
                        color: red;
                    }

                    span:nth-child(3) {
                        margin-left: 10px;
                        font-size: 20px;
                        color: red;
                        font-weight: 700;
                    }
                }
                //商品编码
                h2{
                    font-size: 14px;
                    height: 30px;
                    line-height: 30px;
                    span{
                        margin-right: 30px;
                    }
                }
               .btn{
                   line-height: 80px;
                   button{
                       width: 200px;
                       height: 50px;
                       margin-right: 20px;
                       border: none;
                       color: #fff;
                       font-weight: 700;
                       font-size: 18px;
                   }
                   .addCart{
                    background: #ff6a00;
                  }
                  .buy{
                      background: red;
                  }
               }
            }
        }

    }

}
//页脚设计
// 服务项目
#footer {
    .container {
        display: flex;
        flex-direction: column;

        >ul {
            width: 100%;
            height: 40px;
            padding: 20px 0px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;

            li {
                width: 240px;
                height: 40px;
                border-right: 1px solid #e0e0e0;
                text-align: center;
                line-height: 40px;
                font-size: 20px;

                span {
                    font-size: 25px;
                    margin-right: 10px;
                }
            }
        }

        .wrapper {
            display: flex;

            .service {
                display: flex;
                justify-content: space-between;
                width: 900px;
                height: 250px;
                border-bottom: 1px solid #e0e0e0;

                ul {
                    width: 150px;

                    .title {
                        font-weight: bold;
                        color: black;
                        line-height: 70px;
                    }

                    li {
                        line-height: 30px;
                        font-size: 14px;

                        a {
                            color: #757575;

                            &:hover {
                                color: #ff6700;
                            }
                        }
                    }
                }
            }

            .linkUs {
                width: 300px;
                height: 100px;
                margin-top: 50px;
                border-left: 1px solid #e0e0e0;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: center;
                text-align: center;

                h2 {
                    font-size: 22px;
                    color: #ff6700;
                }

                h3 {
                    color: #616161;
                    font-size: 12px;
                }

                button {
                    border: 1px solid #ff6700;
                    background: #fff;
                    color: #ff6700;
                    width: 118px;
                    height: 28px;
                    font-size: 12px;
                    line-height: 28px;
                    outline: none;

                    &:hover {
                        background: #ff6a00;
                        color: #fff;
                    }
                }

                h4 {
                    font-size: 12px;
                    color: #616161;

                }
            }
        }

        .copyright {
            display: flex;
            justify-content: space-between;
            color: #616161;
            font-size: 14px;
            line-height: 30px;

            div {
                display: flex;
            }

            a {
                color: #616161;
            }
        }

    }
}